package exceptions;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class VentasExceptionTest {

	@Test(expected=VentasException.class)
	public void testException() throws VentasException {
		throw new VentasException(" ");
	}

	@Test
	public void testGetMensaje() throws VentasException {
		try{
			throw new VentasException("Es un asalto");
		}
		catch(VentasException e){
			assertEquals("Es un asalto",e.getMessage());
		}
	}

}
